<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.prime.com.tr/ui"
    xmlns:f="http://java.sun.com/jsf/core"
    template="WEB-INF/facelets/template.xhtml">

    <h:outputScript library="js" name="handlelogin.js" />



    <ui:param name="title" value="Music webshop"></ui:param>


    <ui:define name="left">

        <p:panel header="Your shopping cart">
            <h:outputText value="You have #{shoppingCartModelBean.getCartCount()} articles in your shopping cart"></h:outputText>
            <p/>
            <h:outputText value="Total cost: #{shoppingCartModelBean.getTotal()} kr."></h:outputText>
        </p:panel>
    </ui:define>


    <ui:define name="content">
        <p:panel header="Home">
            <p>Welcome to our webshop! We hope you enjoy your stay and that you order a lot of CD's so we can swim in money someday!</p>
            <p>Use the links above to navigate in the shop.</p>
            <p>On the right side you can see examples of some CD's we have in our shop, check them out!</p>
        </p:panel>
    </ui:define>
</ui:composition>